from common.mysql.MySQLhelper import get_sql_helper

sqlhelper = get_sql_helper()

def get_shequn_container():
    # 根据时间，查找最后一个创建的容器
    container_list = sqlhelper.fetch_all("select container_id, container_type, create_by  from shequn_container order by create_time DESC; ",
                                       ())
    if container_list != ():
        return container_list[0][0], container_list[0][1], container_list[0][2]